* {
    padding: 0;
    margin: 0;
    list-style: none;
}

#box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #232e6d;
}

ul {
    height: 200px;
}

li {
    float: left;
    height: 20px;
    width: 20px;
    border-radius: 20px;
    margin: 20px;
    background-color: white;
}

li:nth-child(1) {
    background-color: #f62e74;
    animation: love1 4s infinite;
    animation-delay: 0s;
}

li:nth-child(2) {
    background-color: #18b934;
    animation: love2 4s infinite;
    animation-delay: 0.15s;
}

li:nth-child(3) {
    background-color: #e4dd1d;
    animation: love3 4s infinite;
    animation-delay: 0.30s;
}

li:nth-child(4) {
    background-color: #562ec3;
    animation: love4 4s infinite;
    animation-delay: 0.45s;
}

li:nth-child(5) {
    background-color: #6bbde8;
    animation: love5 4s infinite;
    animation-delay: 0.60s;
}

li:nth-child(6) {
    background-color: #e8c6df;
    animation: love6 4s infinite;
    animation-delay: 0.75s;
}

li:nth-child(7) {
    background-color: #813f2e;
    animation: love7 4s infinite;
    animation-delay: 0.9s;
}

li:nth-child(8) {
    background-color: #ff3609;
    animation: love8 4s infinite;
    animation-delay: 1.05s;
}

li:nth-child(9) {
    background-color: #532ef6;
    animation: love9 4s infinite;
    animation-delay: 1.20s;
}

@keyframes love1 {
    30%,
    50% {
        height: 60px;
        transform: translateY(-30px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love2 {
    30%,
    50% {
        height: 125px;
        transform: translateY(-62.5px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love3 {
    30%,
    50% {
        height: 160px;
        transform: translateY(-75px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love4 {
    30%,
    50% {
        height: 180px;
        transform: translateY(-60px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love5 {
    30%,
    50% {
        height: 210px;
        transform: translateY(-30px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love6 {
    30%,
    50% {
        height: 180px;
        transform: translateY(-60px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love7 {
    30%,
    50% {
        height: 160px;
        transform: translateY(-75px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love8 {
    30%,
    50% {
        height: 125px;
        transform: translateY(-62.5px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}

@keyframes love9 {
    30%,
    50% {
        height: 60px;
        transform: translateY(-30px);
    }
    75%,
    100% {
        height: 20px;
        transform: translateY(0);
    }
}